package com.dp.system.mapper;

import java.util.List;
import com.dp.system.domain.SysAlarmRule;
import org.apache.ibatis.annotations.Mapper;

/**
 * 报警规则Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-10
 */
@Mapper
public interface SysAlarmRuleMapper 
{
    /**
     * 查询报警规则
     * 
     * @param ruleId 报警规则主键
     * @return 报警规则
     */
    public SysAlarmRule selectSysAlarmRuleByRuleId(Long ruleId);

    /**
     * 查询报警规则列表
     * 
     * @param sysAlarmRule 报警规则
     * @return 报警规则集合
     */
    public List<SysAlarmRule> selectSysAlarmRuleList(SysAlarmRule sysAlarmRule);

    /**
     * 新增报警规则
     * 
     * @param sysAlarmRule 报警规则
     * @return 结果
     */
    public int insertSysAlarmRule(SysAlarmRule sysAlarmRule);

    /**
     * 修改报警规则
     * 
     * @param sysAlarmRule 报警规则
     * @return 结果
     */
    public int updateSysAlarmRule(SysAlarmRule sysAlarmRule);

    /**
     * 删除报警规则
     * 
     * @param ruleId 报警规则主键
     * @return 结果
     */
    public int deleteSysAlarmRuleByRuleId(Long ruleId);

    /**
     * 批量删除报警规则
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAlarmRuleByRuleIds(Long[] ruleIds);
}
